package com.cecsmsserve.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cecsmsserve.entity.HealthRecordType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HealthRecordTypeMapper extends BaseMapper<HealthRecordType> {
    
    @Select("SELECT * FROM health_record_type WHERE status = 1 ORDER BY sort_order ASC")
    List<HealthRecordType> getActiveTypes();
    
} 